/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Assignment2.Q3;

import java.io.*;
import java.util.Date;

/**
 *
 * @author VJ
 */
public class Message implements Serializable{
    private int ID;
    private String type;
    private boolean isACK;
    private int IDofACKMessage;
    private boolean isError;
    private String errorMessage;
    private Date timestamp;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    public boolean isIsACK() {
        return isACK;
    }

    public void setIsACK(boolean isACK) {
        this.isACK = isACK;
    }

    public boolean isIsError() {
        return isError;
    }

    public void setIsError(boolean isError) {
        this.isError = isError;
    }
}
